package com.chinairi.mall.dao;

import com.chinairi.mall.service.modelobject.OCTAForSPMO;
import com.chinairi.mall.model.OrderCommodityTrackAlarm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 预警表 Mapper 接口
 * </p>
 *
 * @author Webgasd
 * @since 2020-08-19
 */
public interface OrderCommodityTrackAlarmMapper extends BaseMapper<OrderCommodityTrackAlarm> {
    /**
     * 根据number获取提前量
     * @param trackNumber
     * @return
     */
    List<OrderCommodityTrackAlarm> selectTAByNumber(@Param("trackNumber") String trackNumber);

    /**
     * 批量插入
     * @param orderCommodityTrackAlarmList
     */
    void batchInsert(@Param("orderCommodityTrackAlarmList") List<OrderCommodityTrackAlarm> orderCommodityTrackAlarmList);
    /**
     * 测试批量更新
     * @param list
     */
    void batchUpdate(@Param("list") List<OCTAForSPMO> list);
}
